selenium python find all links

58

selenium python find all links -

elems = driver.find_elements_by_xpath("//a[@href]")
for elem in elems:
    print(elem.get_attribute("href"))

Comments

Submit
0 Comments